import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

import { ApiProperty } from '@nestjs/swagger';
import { BaseEntity } from '../base.entity';

@Entity({ name: 'sys_user_project' })
export default class SysUserProject extends BaseEntity {
  @PrimaryGeneratedColumn({ name: 'project_id' })
  @ApiProperty()
  projectId: number;

  @ApiProperty()
  @Column({ name: 'user_id' })
  userId: number;

  @ApiProperty()
  @Column()
  status: number;

  @ApiProperty()
  @Column({ name: 'usenumber' })
  usenumber: number;

  @ApiProperty()
  @Column()
  role: number;

  @ApiProperty()
  @Column({ name: 'is_favor' })
  favor: number;
}
